<template>
	<view class="tit-box" @mousedown="mousedown" @dblclick="onDbClickHandler">
		<minMaxClose ref="minMaxClose"></minMaxClose>
		<view class="tit">{{titleTxt}}</view>
	</view>
</template>

<script>
	import lang from "../../../js/conf/Lang.js";
	import minMaxClose from "../../min-max-close.vue";
	import windBtnContrl from "../../../js/WinBtnContrl.js";
	export default
	{
		components:{minMaxClose},
		data()
		{
			return{
				titleTxt:lang.report.repSaleTxt,
			}
		},
		methods:{
			onDbClickHandler()
			{
				this.$refs.minMaxClose.changeMax();
			},
			/***移动窗口***/
			mousedown()
			{
				windBtnContrl.mousedown();
			},
		},
	}
</script>

<style lang="scss">
	.tit-box
	{
		font-size: 18px;
		padding-left: 10px;
		padding-top: 10px;
		padding-bottom: 10px;
		width: calc(100% - 10px);
		border-bottom: 1px solid #EDEDED;
		position: relative;
	}
</style>
